import Vue from 'vue'
import VueJsonp from 'vue-jsonp'
import VueResource from 'vue-resource'
import VueRouter from 'vue-router'
//导入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(VueRouter)
Vue.use(ElementUI);
Vue.use(VueResource)

// Vue.http.options.emulateJSON = true
import Recommend from '../components/Recommend.vue'
import Discover from '../components/Discover.vue'
import Search from '../components/Search.vue'
import LatestSong from '../components/LatestSong.vue'
import LatestMV from '../components/LatestMV.vue'
import result from '../components/result.vue'
import playlists from '../components/playlists.vue'
import Video from '../components/Video.vue'
import Video1 from '../components/Video1.vue'
import Login from '../components/Login.vue'
import findPassword from '../components/findPassword.vue'
import register from '../components/register.vue'
import userInfo from '../components/userInfo.vue'
import Collect from '../components/Collect.vue'
import Admin from '../components/Admin.vue'
import Hot from '../components/Hot.vue'
Vue.http.options.emulateJSON = true

const routes = [{
        path: "/",
        component: Discover
    },
    {
        path: "/Login",
        component: Login
    },

    {
        path: "/Collect",
        component: Collect
    },
    {
        path: "/register",
        component: register
    },
    {
        path: "/userInfo",
        component: userInfo
    },
    {
        path: "/findPassword",
        component: findPassword
    },
    {
        path: "/Recommend",
        component: Recommend
    },
    {
        path: "/Discover",
        component: Discover
    },
    {
        path: "/Search",
        component: Search
    },
    {
        path: "/LatestSong",
        component: LatestSong
    },
    {
        path: "/LatestMV",
        component: LatestMV
    },
    {
        path: "/result",
        component: result
    },
    {
        path: "/playlists",
        component: playlists
    },
    {
        path: "/Video",
        component: Video
    },
    {
        path: "/Video1",
        component: Video1
    },
    {
        path: "/Hot",
        component: Hot
    },
    {
        path: "/Admin",
        component: Admin
    },
]

const router = new VueRouter({
    routes
})
// router.beforeEach((to, from, next) => {
//
// })
export default router